-
Notifications
You must be signed in to change notification settings - Fork 585
Complete overhaul of transform manual page #12034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Latest documentation preview deployed successfully.
Note: This comment is updated whenever you push a commit. |
ea70445 to
58c07bc
Compare
|
Web viewer built successfully.
View image diff on kitdiff. Note: This comment is updated whenever you push a commit. |
e77d1e3 to
2b26a70
Compare
| - The `sun` entity exists at the origin of its own coordinate system | ||
| - The `sun/planet` transform places the planet 6 units along x away from the sun | ||
| - The `sun/planet/moon` transform places the moon 3 units along x away from the planet | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link more detailed snippets!
270fe8c to
86a9bcd
Compare
ntjohnson1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I think this looks good. I'd consider all my notes to basically be nits. The organization of headers to make the flow clearer is probably the biggest thing.
Leaving as a comment since this is still a draft and I assume you want a final pass after check boxes are completed.
| The simplest way to use transforms is through entity path hierarchies, where each transform describes the relationship between an entity and its parent path. | ||
| Note that by default, all entities are connected via identity transforms (to opt out of that, you have to use named transform frames, more on that later). | ||
|
|
||
| snippet: concepts/transform3d_hierarchy_simple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooof, this initially rendered as the moon inside my planet. I reset my view and it was fixed. However, it appears to default to wireframe instead of solid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh that's a problem. good catch
| Note that unlike in ROS, you can log your transform relationship on _any_ entity. | ||
| However, currently once an entity specified the relation between two frames, this relation may no longer be logged on any other entity. | ||
|
|
||
| Named transform frames have several advantages over entity path based hierarchies: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nicest part for me running the snippets was that I could hide the sun when using names but maybe that is captured with the decoupling entities from transforms already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm interesting. I'd lean towards it already being covered since with enough clicks you can also have it. But good point 🤔
| Example: | ||
| TODO: xlanguage please. | ||
| ```python | ||
| rr.log("robot", rr.Transform3D(translation=[1, 0, 0])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These little code snippets didn't display anything interesting but made the idea concrete. Maybe the TODO will resolve that.
| --- | ||
|
|
||
| <!-- Figma file for diagrams in this article: https://www.figma.com/board/PTwJKgi9kQOqG7ZgzdhrDL/Transforms-doc-page-graphs?t=fWkOGxxn6mZkkCON-1 --> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note on overall layout. Right now it feels a little weird so maybe just rearranging the header hierarchy will help?
Maybe something like (no opinion on exact names):
- Transforms
- Entity path transforms
- Named transforms
- Transforms - under the hood
- Special Transform Archetypes
- Pinhole
- View coordinates
- Pose transforms
… of view coordinates
86a9bcd to
671717a
Compare
Related
What
Even without the new addition of named transform frames, the "Transforms & Spaces" page was very outdated.
This rewrites it completely and explains now how all the different kind of transforms work and relate to each other
We'll likely refine this page further in the coming days. So doesn't have to be perfect yet, just better than before.
Draft todo: